<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>站点设置</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统设置 <span class="c-gray en">&gt;</span> 站点设置
    <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="pd-20">
    <div id="tab_demo" class="HuiTab">
        <div class="tabBar cl"><span>站点信息</span><span>上传配置</span></div>
        <form id="form1" name="form1" action="{:U('submit',array('act'=>'siteInfo'))}" method="post" class="form form-horizontal">
            <div class="tabCon">
                <div class="pd-20">
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>站点名称：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入" name="site_name" datatype="*" nullmsg="不能为空" value="{$site_name}">
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>网站关键词：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入" name="site_keywords" datatype="*" nullmsg="不能为空" value="{$site_keywords}">
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>客服电话：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入" name="service_tel" datatype="*" nullmsg="不能为空" value="{$service_tel}">
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red"></span>官方微信：</label>
                        <div class="formControls col-5">
                            <input type="file" class="input-text" name="coverFile" accept="image/*">
                        </div>
                        <div class="col-4">
                            <if condition="$wechat">
                                已上传，<a href="javascript:void(0);" onclick="previewPictures('__UPS__{$wechat}')">预览</a>
                            </if>
                        </div>
                    </div>
                    <!--<div class="row cl">-->
                        <!--<label class="form-label col-3"><span class="c-red">*</span>官方微信：</label>-->
                        <!--<div class="formControls col-5">-->
                            <!--<input type="text" class="input-text" placeholder="请输入" name="wechat" datatype="*" nullmsg="不能为空" value="{$wechat}">-->
                        <!--</div>-->
                        <!--<div class="col-4"></div>-->
                    <!--</div>-->
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>网站描述：</label>
                        <div class="formControls col-5">
                            <textarea name="site_description" class="textarea" placeholder="请输入" datatype="*" nullmsg="不能为空">{$site_description}</textarea>
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>底部版权：</label>
                        <div class="formControls col-5">
                            <textarea name="site_copy_right" class="textarea" placeholder="请输入" datatype="*" nullmsg="不能为空">{$site_copy_right}</textarea>
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>公司信息：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入" name="site_company" datatype="*" nullmsg="不能为空" value="{$site_company}">
                        </div>
                        <div class="col-4"></div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>备案号：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入" name="site_icp" datatype="*" nullmsg="不能为空" value="{$site_icp}">
                        </div>
                        <div class="col-4"></div>
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="pd-20">
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>单个文件上传限制：</label>
                        <div class="formControls col-5">
                            <input type="text" class="input-text" placeholder="请输入"  name="upload_size" datatype="n" nullmsg="不能为空" value="{$upload_size}">
                        </div>
                        <div class="col-4">MB</div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-3"><span class="c-red">*</span>上传图片压缩：</label>
                        <div class="formControls col-5">
                            <div class="switch size-S" data-on-label="启用" data-off-label="停用">
                                <input type="checkbox" name="upload_compress" <if condition="$upload_compress">checked</if> />
                            </div>
                        </div>
                        <div class="col-4">压缩图片可以节省磁盘空间</div>
                    </div>
                </div>
            </div>
            <div class="row cl">
                <div class="col-9 col-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="提交">
                </div>
            </div>
        </form>
    </div>
</div>
</div>
<include file="Common:footer_include"/>
<script type="text/javascript" src="__HUI__lib/bootstrap-Switch/bootstrapSwitch.js"></script>
<link rel="stylesheet" href="__HUI__lib/bootstrap-Switch/bootstrapSwitch.css">
<script>
    $(function(){
        $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click", getTabIndex());
    });
</script>
</body>
</html>